package top.gaui.nurse.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.gaui.nurse.entity.Execution;

import java.math.BigInteger;

/**
 * @author Fujie_Zeng
 * @version 1.0
 * @date 2020/4/21 5:17
 */
public interface ExecutionRepository extends JpaRepository<Execution, BigInteger>, JpaSpecificationExecutor<Execution> {
    int countByNum(Integer num);
    int countByNumAndState(Integer num,String state);
}
